package cn.wolfcode.luowowo.small.domin;

import cn.wolfcode.luowowo.common.domain.BaseDomain;
import lombok.Getter;
import lombok.Setter;

import com.alibaba.fastjson.JSON;
import lombok.Getter;
import lombok.Setter;

import java.util.HashMap;
import java.util.Map;

@Getter
@Setter

public class Goods extends BaseDomain {


    private String name;

    private Long gold;

    private String imgurl;

    private String content;

    private Long num;

    public String getJsonString(){
        Map<String, Object> map = new HashMap<>();
        map.put("name",name);
        map.put("id",id);
        map.put("gold",gold);
        map.put("imgurl",imgurl);
        map.put("content",content);
        map.put("num",num);
        return JSON.toJSONString(map);
    }
}